package com.haopt.scheduling.service;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * @author haopt
 * @version 1.0
 * @ClassName Scheduling
 * @Description TODO
 * @date 2021/5/14 9:04
 */
@Service
public class Scheduling {
    @Scheduled(cron = "*/10 * * * * ?")
    public void schedulingTest1() {
        System.out.println("定时任务一执行了");
    }
    @Scheduled(cron = "*/6 * * * * ?")
    public void schedulingTest2() {
        System.out.println("定时任务二执行了");
    }
}
